<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="__CDN__/assets/vvptd/setting/css/mui.min.css">
		<link rel="stylesheet" href="__CDN__/assets/vvptd/setting/css/clear.border.css" />
		<link rel="stylesheet" type="text/css" href="__CDN__/assets/vvptd/setting/css/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="__CDN__/assets/vvptd/setting/css/style.css"/>
		<style>
			.mui-btn-blue, .mui-btn-primary, input[type=submit]{
				background-color: #C3C3C3;
				border: none;
				border-radius: 20px;
				padding: 4px 12px;
				font-size: 13px;
				line-height: 20px;
			}
			.mui-table-view li{
				border-bottom: 1px solid #DCDCDC;
			}
			.mui-table-view li:first-child{
				border-top: 1px solid #DCDCDC;
			}
		</style>
	</head>

	<body>
		<div id="pullrefresh" class="mui-content mui-scroll-wrapper order-main">
			<div class="mui-scroll ">
 
				<ul class="mui-table-view order_list">
					<!-- 排队订单 进行中 -->
					
				</ul>
			</div>
		</div>
		<script src="__CDN__/assets/vvptd/setting/js/mui.min.js"></script>
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
      <script src="__CDN__/assets/vvptd/setting/js/public.js"></script>
        <script>
            mui('body').on('tap', 'a', function () {
                if(this.getAttribute('href')!=null) {
                    mui.openWindow({
                        url: baseUrl + this.getAttribute('href'),
                        waiting: {
                            autoShow: true,//自动显示等待框，默认为true
                            title: '正在加载...'
                        }
                        //id: this.getAttribute('page-id')
                    });
                }
            });
            mui.init({
                swipeBack: false,
                keyEventBind: {
                    backbutton: false //关闭back按键监听
                },
                pullRefresh: {
                    container: '#pullrefresh',
                    up: {
                        contentrefresh: '正在加载...',
                        callback: pullupRefresh
                    }
                }
            });
            var page = 1;
            getAllOrder();
            function getAllOrder(){
                $.ajax({
                    url:baseUrl+'/vvptd/order/getMyOrderList',
                    type:'post',
                    data:{
                        page:page,
                      status:'2,5,6,1,3,4,0,9'
                    },
                    success:function(data){
                        $('.order_list').append(data);


                    },error:function(res){
                    }
                })
            }
            var count = 0;
            /**
             * 上拉加载具体业务实现
             */
            function pullupRefresh() {
                setTimeout(function() {
                    mui('#pullrefresh').pullRefresh().endPullupToRefresh((++count > 2)); //参数为true代表没有更多数据了。
                    ++page;
                    getAllOrder();
                }, 1000);
            }
        </script>
	</body>

</html>